package com.rui.shangXueTang.kruskal.crusk;

/**
 * @author : [锐神NO.3]
 * @version : [v1.0]
 * @className : Edge
 * @createTime : [2022/2/19 20:38]
 * @description : [描述该类的功能]
 */

public class Edge implements Comparable<Edge> {

    int begin;

    int end;

    int weight;

    @Override
    public int compareTo(Edge o) {
        return this.weight - o.weight;
    }
}
